package com.lj.sys.param;

import com.lj.sys.entity.SysDept;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 系统部门表 保存参数
 * </p>
 *
 * @author luojing
 * @since 2024-12-20 21:27:32
 */
@Data
@Schema(description = "系统部门表 保存参数")
public class SysDeptSaveParam {

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "父部门")
    private Long parentId;

    private String remark;

    public SysDept toEntity() {
        SysDept entity = new SysDept();
        entity.setDeptName(deptName);
        entity.setParentId(parentId);
        entity.setRemark(remark);
        return entity;
    }
}
